package com.hqyj.qinyong;

import com.hqyj.common.pojo.TestPaper;
import com.hqyj.common.service.ITestPaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/testPaper")
public class qyTestPaperController {
    @Autowired
    ITestPaperService testPaperService;
    @RequestMapping("/add")
    public HashMap<String,Object> addTestPaper(TestPaper testPaper){
        return testPaperService.addPaper(testPaper);
    }
    @RequestMapping("/list")
    public HashMap<String,Object> TestPaperList(TestPaper testPaper){
        return testPaperService.paperList(testPaper);
    }
    @RequestMapping("/update")
    public HashMap<String,Object> updateTestPaper(TestPaper testPaper){
        return testPaperService.updatePaper(testPaper);
    }
    @RequestMapping("/delete")
    public HashMap<String,Object> deleteTestPaper(Integer testPaperId){
        return testPaperService.deletePaper(testPaperId);
    }


}
